package com.cheejee.goodscenter.module.vo;

import com.cheejee.goodscenter.module.entity.CategoryPropertiesGroup;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * @author CARRY
 * @Date 2020年10月30日下午3:50:40
 */
@Data
@Builder
@ApiModel("分类属性模板")
public class CategoryPropertiesGroupVo {

	@ApiModelProperty("分类ID")
    private Integer categoryId;

	@ApiModelProperty("分组名称")
    private String groupName;

	@ApiModelProperty("描述")
    private String describe;
    
    public static CategoryPropertiesGroup convert(Integer id, CategoryPropertiesGroupVo vo) {
    	return new CategoryPropertiesGroup(id, vo.getCategoryId(), vo.getGroupName(), vo.getDescribe());
    }
}
